package com.example.crossborderecommerce.service.impl;

import com.example.crossborderecommerce.entity.Admin;
import com.example.crossborderecommerce.entity.Store;
import com.example.crossborderecommerce.entity.StoreCommodity;
import com.example.crossborderecommerce.mapper.StoreCommodityMapper;
import com.example.crossborderecommerce.mapper.StoreReceiptMapper;
import com.example.crossborderecommerce.service.IStoreCommodityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Yolanda
 * @since 2024-05-09
 */
@Service
public class StoreCommodityServiceImpl extends ServiceImpl<StoreCommodityMapper, StoreCommodity> implements IStoreCommodityService {
    @Resource
    StoreCommodityMapper storeCommodityMapper;
    @Override
    public Store findStoreByCommodityId(String storeCommodityId){return storeCommodityMapper.findStoreByCommodityId(storeCommodityId);}
    @Override
    public StoreCommodity findByStoreIdProductId(String storeId,String produceId){return storeCommodityMapper.findByStoreIdProductId(storeId,produceId);}
}
